<!DOCTYPE html>
<html>
<!--https://www.cnblogs.com/007sx/p/7520529.html-->
<head>
    <meta charset="UTF-8">
    <title>XMLHttpRequest上传文件</title>

</head>
<body>
<progress id="progressBar" value="0" max="100" style="width: 300px;"></progress>
<span id="percentage"></span><span id="time"></span>
<br /><br />
<input type="file" id="file" name="myfile" />
<input type="button"  value="上传" />
<input type="button" value="取消" />

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/upload.js"></script>
</body>
</html>